package org.dromara.web.domain.vo;

import org.dromara.common.translation.annotation.Translation;
import org.dromara.common.translation.constant.TransConstant;
import org.dromara.web.domain.TUser;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 用户视图对象 t_user
 *
 * @author Lion Li
 * @date 2024-10-26
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = TUser.class)
public class TUserVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @ExcelProperty(value = "主键ID")
    private Integer id;

    /**
     * 微信OpenID
     */
    @ExcelProperty(value = "微信OpenID")
    private String openId;

    /**
     * 用户状态
     */
    @ExcelProperty(value = "用户状态")
    private Long status;

    /**
     * 用户名
     */
    @ExcelProperty(value = "用户名")
    private String username;

    /**
     * 用户证件号
     */
    @ExcelProperty(value = "用户证件号")
    private String uid;

    /**
     * 密码
     */
    @ExcelProperty(value = "密码")
    private String password;

    /**
     * 头像
     */
    @ExcelProperty(value = "头像")
    private String avatar;

    /**
     * 头像Url
     */
    @Translation(type = TransConstant.OSS_ID_TO_URL, mapper = "avatar")
    private String avatarUrl;
    /**
     * 手机号
     */
    @ExcelProperty(value = "手机号")
    private String phone;


}
